#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>


int main(int argc, char *argv[])
{
	struct gameState *state = newGame();
	int *bonus = malloc(sizeof(int));
	int i;
	state->handCount[0] = 1;
	state->hand[0][0] = great_hall;
        state->numPlayers = 2;
        state->whoseTurn = 0;
        state->numActions = 1;
        state->deckCount[0] = 10;
        state->discardCount[0] = 0;
        for(i = 0; i<10;i++){
                state->supplyCount[i] = i+7;
                state->deck[0][i] = i;
	}
	cardEffect(great_hall,1,2,3,state,0,bonus);

	if(state->handCount[0] == 1 && state->numActions == 1 && state->deckCount[0] == 9 && state->discardCount[0] == 1){
		printf("great_hall PASSED\n");
	}
	else{
		printf("great_hall FAILED\n");
	}
	printf("%d %d %d %d\n", state->handCount[0], state->numActions,state->deckCount[0], state->discardCount[0]);

	return 0;
}

